# Contributor: Patrycja Rosa <alpine@ptrcnull.me>
# Maintainer: Patrycja Rosa <alpine@ptrcnull.me>
pkgname=dotenv-linter
pkgver=3.3.0
pkgrel=1
pkgdesc="Lightning-fast linter for .env files"
url="https://dotenv-linter.github.io"
arch="all !s390x !ppc64le !riscv64" # rust/rustls
license="MIT"
makedepends="cargo cargo-auditable"
source="https://github.com/dotenv-linter/dotenv-linter/archive/refs/tags/v$pkgver/dotenv-linter-$pkgver.tar.gz"


prepare() {
	default_prepare

	cargo fetch --target="$CTARGET" --locked
}

build() {
	cargo auditable build --release --frozen
}

check() {
	cargo test --frozen
}

package() {
	install -Dm755 target/release/dotenv-linter -t "$pkgdir"/usr/bin
}

sha512sums="
5f513277e463d1d83953488934ede246634ba8752bc08f44e62a084aea8724d93da2d5bc9924609c2c2dde918d40d619674dfe5c4e8a31f887f7a7e48cd83918  dotenv-linter-3.3.0.tar.gz
"
